package com.achievo.know.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

import com.dayatang.domain.BaseEntity;

@Entity
@Table(name="RAMS_FRIEND_LINK")
public class FriendLink extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -930119813341465672L;

	public enum LinkType{
		IN,OUT
	}

	//标题
	@NotNull
	@Column(name="TITLE",length=100,nullable=false)
	private String title;
	
	//URL
	@NotNull
	@Column(name="URL",length=500,nullable=false)
	private String url;
	
	@Column(name="LINK_ORDER",length=3,nullable=false)
	private int order;
	
	@Column(name="LINK_TYPE",length=2)
	private LinkType type;
	
	@Transient
	private String typeStr;
	
	

	public String getTypeStr() {
		return typeStr;
	}

	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public LinkType getType() {
		return type;
	}

	public void setType(LinkType type) {
		this.type = type;
	}

	@Override
	public boolean equals(Object arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	
}
